package com.gzhryc.shared_device.oem.h5.agent.outside;

import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;
import java.util.Date;

public class GetGZHTokenResponse extends SecurityResponse<GetGZHTokenResponse.Body> {

    private static final long serialVersionUID = 1L;

    public GetGZHTokenResponse() {
        this.body = new Body();
    }

    public GetGZHTokenResponse(Integer code) {
        this.body = new Body();
        this.code = code;
    }

    public GetGZHTokenResponse(Integer code, String msg) {
        this.body = new Body();
        this.code = code;
        this.msg = msg;
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;
        
		private String accessToken;
        //凭证有效时间，单位：秒
        private Long expiresIn;
        //最后一次设置时间
        private Date lastSetDate;

        public String getAccessToken() {
            return accessToken;
        }

        public void setAccessToken(String accessToken) {
            this.accessToken = accessToken;
        }

        public Long getExpiresIn() {
            return expiresIn;
        }

        public void setExpiresIn(Long expiresIn) {
            this.expiresIn = expiresIn;
        }

        public Date getLastSetDate() {
            return lastSetDate;
        }

        public void setLastSetDate(Date lastSetDate) {
            this.lastSetDate = lastSetDate;
        }
    }
}
